Which of the following is the correct way to pass the value in the variable num_servers into a module with the input servers?
Answer : A
A Terraform provisioner must be nested inside a resource configuration block.
Answer : A
Most provisioners require access to the remote resource via SSH or WinRM, and expect a nested connection block with details about how to connect.
Reference:
https://www.terraform.io/docs/language/resources/provisioners/connection.html
Terraform can run on Windows or Linux, but it requires a Server version of the Windows operating system.
Answer : B
What does the default "local" Terraform backend store?
Answer : D
The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.
Reference:
https://www.terraform.io/docs/language/settings/backends/local.html
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?
Answer : C
✑ Indent two spaces for each nesting level.
✑ When multiple arguments with single-line values appear on consecutive lines at the same nesting level, align their equals signs.
Reference:
https://www.terraform.io/docs/language/syntax/style.html
What value does the Terraform Cloud/Terraform Enterprise private module registry provide over the public Terraform Module Registry?
Answer : D
Terraform Registry is an index of modules shared publicly using this protocol. This public registry is the easiest way to get started with Terraform and find modules created by others in the community.
Reference:
https://www.terraform.io/docs/language/modules/sources.html
Which task does terraform init not perform?
Answer : D
Reference:
https://www.terraform.io/docs/cli/commands/init.html
You have declared a variable called var.list which is a list of objects that all have an attribute id.
Which options will produce a list of the IDs? (Choose two.)
Answer : AB
Which argument(s) is (are) required when declaring a Terraform variable?
Answer : B
The variable declaration can also include a default argument.
Reference:
https://www.terraform.io/docs/language/values/variables.html
When using a module block to reference a module stored on the public Terraform Module Registry such as:
How do you specify version 1.0.0?
Answer : C
What features does the hosted service Terraform Cloud provide? (Choose two.)
Answer : BC
Reference:
https://www.terraform.io/docs/enterprise/admin/automated-recovery.html https://www.terraform.io/docs/language/state/remote.html
Where does the Terraform local backend store its state?
Answer : C
The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.
Reference:
https://www.terraform.io/docs/language/settings/backends/local.html
Which option can not be used to keep secrets out of Terraform configuration files?
Answer : C
Reference:
https://secrethub.io/blog/secret-management-for-terraform/
What is one disadvantage of using dynamic blocks in Terraform?
Answer : A
Reference:
https://github.com/hashicorp/terraform/issues/19291
Only the user that generated a plan may apply it.
Answer : B
Have any questions or issues ? Please dont hesitate to contact us